package com.ruoyi.classai.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 资源库对象 ewc_resource
 *
 * @author lcj
 * @date 2025-03-16
 */
@Data
@TableName("ewc_resource")
@Schema(description = "资源库对象ewc_resource")
public class EwcResource implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @Schema(description = "$column.columnComment")
    private String id;

    /**
     * 资源名称
     */
    @Excel(name = "资源名称")
    @Schema(description = "资源名称")
    private String resourceName;

    /**
     * 资源备注
     */
    @Excel(name = "资源备注")
    @Schema(description = "资源备注")
    private String remarks;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private Date updateTime;

    /**
     * 资源图片
     */
    @Excel(name = "资源图片")
    @Schema(description = "资源图片")
    private String resourceImg;

    /**
     * 浏览数量
     */
    @Excel(name = "浏览数量")
    @Schema(description = "浏览数量")
    private Integer browseNum;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private Integer status;

    /**
     * 年级类型
     */
    @Excel(name = "年级类型")
    @Schema(description = "年级类型")
    private Integer gradeType;

    /**
     * 学科类型
     */
    @Excel(name = "学科类型")
    @Schema(description = "学科类型")
    private Integer subjectType;

    @Excel(name = "创建人名称")
    @Schema(description = "创建人名称")
    private String creator;

    @Excel(name = "创建人ID")
    @Schema(description = "创建人ID")
    private String creatorId;

    @Schema(description = "资源信息")
    @TableField(exist = false)
    private List<EwcResourceDetails> resourceDetails;
}
